package com.tunxing.行为型.责任链设计模式1;

public class Client {

    public static void main(String[] args) {
        FilterChain filterChain = new FilterChain();
        Filter1 filter1 = new Filter1();
        Filter2 filter2 = new Filter2();
        filterChain.addFilter(filter1);
        filterChain.addFilter(filter2);
        Request request = new Request();
        request.setId(1);
        request.setMessage("责任链实现方式1");
        filterChain.doFilter(request, filterChain);
    }
}
